const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.userInfo.username,
  staffPhoto: state => state.user.userInfo.staffPhoto
}
export default getters

// state.user.userInfo.username.abc
// state.getters.username mapGetters -> username
// 这个项目是100个程序员 几千个组件
